home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir30 / tabpr212.zip / TABPRO.DCL < prev    next >
Text File  |  1993-11-26  |  10KB  |  479 lines

  1. //
  2. // TabPro.DCL - Copyright 1993 by Mountain Software
  3. //
  4. // This file is used by TabPro, the AutoCAD Spreadsheet Interface
  5. //
  6. // THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED
  7. // WARRANTY.  ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR
  8. // PURPOSE AND OF MERCHANTABILITY ARE HEREBY DISCLAIMED.
  9. //
  10. //*===================================================================*
  11.  
  12. dcl_settings : default_dcl_settings { audit_level = 0; }
  13.  
  14. //*----- File -----
  15.  
  16. file_row : row {
  17. //*----- File
  18.     : button {
  19.         label = "File ";
  20.         fixed_width=true;
  21.         width = 8;
  22.         key = "file";
  23.         mnemonic = "F";
  24.     }
  25.     : edit_box {
  26.         key = "file_box";
  27.         width = 25;
  28.     }
  29. }
  30.  
  31. ok1 : column {
  32.     : row {
  33.         fixed_width = true;
  34.         alignment = centered;
  35.         : ok_button { key = "accept_1"; }
  36.     }
  37. }
  38.  
  39. ok_cancel1 : column {
  40.     : row {
  41.         fixed_width = true;
  42.         alignment = centered;
  43.         : ok_button { key = "accept_1"; }
  44.         : spacer { width = 2; }
  45.         cancel_button;
  46.     }
  47. }
  48.  
  49. range_row : row {
  50. //*----- Range
  51.     : button {
  52.         label = "Range";
  53.         fixed_width=true;
  54.         width = 8;
  55.         key = "range";
  56.         mnemonic = "R";
  57.     }
  58.     : edit_box {
  59.         key = "range_box";
  60.         width = 25;
  61.     }
  62. }
  63.  
  64. //*----- Text Layer
  65.  
  66. layer_row : row {
  67.     : button {
  68.         label = "Layer...";
  69.         fixed_width=true;
  70.         width = 8;
  71.         key = "layer";
  72.         mnemonic = "L";
  73.     }
  74.     : popup_list {
  75.         key = "layer_list";
  76.         width = 15;
  77.         popup_height = 7;
  78.         alignment = right;
  79.     }
  80. }
  81.  
  82. //*----- Text Style
  83.  
  84. style_row : row {
  85.     : button {
  86.         label = "Style...";
  87.         fixed_width=true;
  88.         width = 8;
  89.         key = "style";
  90.         mnemonic = "S";
  91.     }
  92.     : popup_list {
  93.         key = "style_list";
  94.         width = 15;
  95.         popup_height = 7;
  96.         alignment = right;
  97.     }
  98. }
  99.  
  100. //*----- Grid
  101.  
  102. grid_row : row {
  103.     : button {
  104.         label = "Grid... ";
  105.         fixed_width=true;
  106.         width = 8;
  107.         key = "grid";
  108.         mnemonic = "G";
  109.     }
  110.     //*----- Grid Layer
  111.     : popup_list {
  112.         mnemonic = "L";
  113.         key = "grid_layer";
  114.         width = 15;
  115.         popup_height = 7;
  116.         alignment = right;
  117.     }
  118. }
  119.  
  120. //*----- Row Spacing
  121.  
  122. row_scale_edit : edit_box {
  123.     label = "Row Scale";
  124.     mnemonic = "R";
  125.     key = "row_sf";
  126.     edit_width = 8;
  127. }
  128.  
  129. row_spacing : row {
  130.     row_scale_edit;
  131.     : slider {
  132.         key = "row_slider";
  133.         width = 12;
  134.         fixed_width = true;
  135.         min_value = 100;
  136.         max_value = 500;
  137.     }
  138. }
  139.  
  140. win_row_spacing : row { : row_scale_edit { edit_width = 8; }}
  141.  
  142. //*----- Column Spacing
  143.  
  144. col_space_edit : edit_box {
  145.     label = "Column Offset";
  146.     mnemonic = "C";
  147.     key = "col_of";
  148.     edit_width = 8;
  149. }
  150.  
  151. col_spacing : row {
  152.     col_space_edit;
  153.     : slider {
  154.         key = "col_slider";
  155.         width = 12;
  156.         fixed_width = true;
  157.         min_value = 0;
  158.         max_value = 400;
  159.     }
  160. }
  161.  
  162. win_col_spacing : row { : col_space_edit { edit_width = 8; }}
  163.  
  164. //*----- Text Size
  165.  
  166. text_size : edit_box {
  167.     label = "Text Size";
  168.     mnemonic = "T";
  169.     key = "text_ht";
  170.     edit_width = 8;
  171. }
  172.  
  173. //*----- Table
  174.  
  175. table_row : row {
  176.     fixed_width = true;
  177.     alignment = centered;
  178.     : button {
  179.         label = "Scaling";
  180.         fixed_width=true;
  181.         width = 8;
  182.         key = "scale";
  183.         mnemonic = "S";
  184.     }
  185.     : spacer { width = 2; }
  186.     : button {
  187.         label = "Table";
  188.         fixed_width=true;
  189.         width = 8;
  190.         key = "table";
  191.         mnemonic = "T";
  192.     }
  193.     : spacer { width = 2; }
  194.     : button {
  195.         label = "Update";
  196.         fixed_width=true;
  197.         width = 8;
  198.         key = "update";
  199.         mnemonic = "U";
  200.     }
  201. }
  202.  
  203. tabpro : dialog
  204. {
  205.     label = "TabPro";
  206.     : column {
  207.         file_row;
  208.         range_row;
  209.         : boxed_column {
  210.             label = "Text Parameters";
  211.             layer_row;
  212.             style_row;
  213.         }
  214.         : boxed_column {
  215.             label = "Table Settings";
  216.             grid_row;
  217.             table_row;
  218.         }
  219.     }
  220.     spacer;
  221.     ok_cancel_help_errtile;
  222. }
  223.  
  224. scale : dialog {
  225.     label = "Table Scaling Settings";
  226.     text_size;
  227.     row_spacing;
  228.     col_spacing;
  229.     spacer;
  230.     ok1;
  231. }
  232.  
  233. //  A different dialogue is required for Windows due to a bug in
  234. //  the Windows implementation of the proteus slider widget
  235.  
  236. win_scale : dialog {
  237.     label = "Table Scaling Settings";
  238.     text_size;
  239.     win_row_spacing;
  240.     win_col_spacing;
  241.     spacer;
  242.     ok1;
  243. }
  244.  
  245.  
  246. Grid : dialog
  247. {
  248.     label = "Table Grid";
  249.     allow_accept=true;
  250.     : boxed_radio_row {
  251.         label = "Border";
  252.         : radio_button {
  253.             key = "border_0";
  254.             label = "None";
  255.             mnemonic = "N";
  256.         }
  257.         : radio_button {
  258.             key = "border_1";
  259.             label = "Thin";
  260.             mnemonic = "T";
  261.         }
  262.         : radio_button {
  263.             key = "border_2";
  264.             label = "Medium";
  265.             mnemonic = "M";
  266.         }
  267.         : radio_button {
  268.             key = "border_3";
  269.             label = "tHick";
  270.             mnemonic = "H";
  271.         }
  272.     }
  273.     spacer;
  274.     : boxed_radio_row {
  275.         label = "Grid Lines";
  276.         mnemonic = "D";
  277.         : radio_button {
  278.             key = "grid_0";
  279.             label = "nOne";
  280.             mnemonic = "O";
  281.         }
  282.         : radio_button {
  283.             key = "grid_1";
  284.             label = "Dotted";
  285.             mnemonic = "D";
  286.         }
  287.         : radio_button {
  288.             key = "grid_2";
  289.             label = "dAshed";
  290.             mnemonic = "A";
  291.         }
  292.         : radio_button {
  293.             key = "grid_3";
  294.             label = "Continuous";
  295.             mnemonic = "C";
  296.         }
  297.     }
  298.     spacer;
  299.     ok1;
  300. }
  301.  
  302.  
  303. Range : dialog
  304. {
  305.     label = "Named Ranges";
  306.     : list_box {
  307.         key = "range_list";
  308.         width = 35;
  309.         allow_accept=true;
  310.     }
  311.     spacer;
  312.     ok_cancel1;
  313. }
  314.  
  315. table : dialog
  316. {
  317.     label = "Table Creation Mode";
  318.     allow_accept=true;
  319.     : boxed_radio_column {
  320.         label = "Mode";
  321.         : radio_button {
  322.             key = "table_text";
  323.             label = "Lines and Text";
  324.             mnemonic = "T";
  325.         }
  326.         : radio_button {
  327.             key = "table_block";
  328.             label = "Block and Attributes";
  329.             mnemonic = "B";
  330.         }
  331.     }
  332.     spacer;
  333.     ok1;
  334. }
  335.  
  336. //*----- Duplication of the AutoCAD Style Icon Menu
  337.  
  338. icon_box : image_button
  339. {
  340.     height = 4;
  341.     width = 12;
  342.     fixed_height = true;
  343.     fixed_width = true;
  344.     color=graphics_background;
  345.     allow_accept=true;
  346. }
  347.  
  348. icon_dialog : dialog
  349. {
  350.     label = "Icon Menu";
  351.     : row {
  352.         : list_box {
  353.             key = "name_list";
  354.             width = 20;
  355.             allow_accept=true;
  356.         }
  357.         : column {
  358.             : row {
  359.                 : icon_box { key = "01"; }
  360.                 : icon_box { key = "02"; }
  361.                 : icon_box { key = "03"; }
  362.                 : icon_box { key = "04"; }
  363.             }
  364.             : row {
  365.                 : icon_box { key = "05"; }
  366.                 : icon_box { key = "06"; }
  367.                 : icon_box { key = "07"; }
  368.                 : icon_box { key = "08"; }
  369.             }
  370.             : row {
  371.                 : icon_box { key = "09"; }
  372.                 : icon_box { key = "10"; }
  373.                 : icon_box { key = "11"; }
  374.                 : icon_box { key = "12"; }
  375.             }
  376.             : row {
  377.                 : icon_box { key = "13"; }
  378.                 : icon_box { key = "14"; }
  379.                 : icon_box { key = "15"; }
  380.                 : icon_box { key = "16"; }
  381.             }
  382.             : row {
  383.                 : icon_box { key = "17"; }
  384.                 : icon_box { key = "18"; }
  385.                 : icon_box { key = "19"; }
  386.                 : icon_box { key = "20"; }
  387.             }
  388.         }
  389.     }
  390.     : row {
  391.         fixed_width = true;
  392.         alignment = centered;
  393.         : button {
  394.             label = "Previous";
  395.             key = "previous";
  396.             mnemonic = "P";
  397.         }
  398.         : spacer { width = 2; }
  399.         : button {
  400.             label = "Next";
  401.             key = "next";
  402.             mnemonic = "N";
  403.         }
  404.         : spacer { width = 2; }
  405.         ok_button;
  406.         : spacer { width = 2; }
  407.         cancel_button;
  408.         : spacer { width = 2; }
  409.         help_button;
  410.     }
  411.     errtile;
  412. }
  413.  
  414. look_file : dialog {
  415.     label = "";
  416.     key = "filename";
  417.     : list_box {
  418.         key = "look_box";
  419.         tabs = "9 17 25 33 41 49 57 65 73 81";
  420.         width = 74;
  421.         height = 20;
  422.     }
  423.     ok_button;
  424. }
  425.  
  426. style_dialog : dialog
  427. {
  428.     label = "Style Settings";
  429.     : edit_box {
  430.         label = "Style Name";
  431.         mnemonic = "S";
  432.         key = "style_name";
  433.         edit_width = 15;
  434.     }
  435.     : edit_box {
  436.         label = "Font Filename";
  437.         mnemonic = "F";
  438.         key = "font_file";
  439.         edit_width = 15;
  440.     }
  441.     : edit_box {
  442.         label = "Text Height";
  443.         mnemonic = "H";
  444.         key = "height";
  445.         edit_width = 10;
  446.     }
  447.     : edit_box {
  448.         label = "Width Factor";
  449.         mnemonic = "W";
  450.         key = "width_factor";
  451.         edit_width = 10;
  452.     }
  453.     : edit_box {
  454.         label = "Obliqueing Angle";
  455.         mnemonic = "O";
  456.         key = "obl_ang";
  457.         edit_width = 10;
  458.     }
  459.     : boxed_row {
  460.         : toggle {
  461.             label = "Backwards";
  462.             key = "backwards";
  463.             value = "0";
  464.         }
  465.         : toggle {
  466.             label = "Upside Down";
  467.             key = "upside_down";
  468.             value = "0";
  469.         }
  470.         : toggle {
  471.             label = "Vertical";
  472.             key = "vertical";
  473.             value = "0";
  474.         }
  475.     }
  476.     ok_cancel_help_errtile;
  477. }
  478.  
  479.